import { _decorator, assetManager, Component, director, Input, input, Node } from 'cc';
import { loading } from './loading';
const { ccclass, property } = _decorator;

@ccclass('startGame')
export class startGame extends Component {
    @property(Node)
    public gameNode:Node = null
    start() {
        input.on(Input.EventType.TOUCH_START,this.startGame,this)
    }
    startGame(){
        // 切换准备开始游戏场景
        director.loadScene('gameStart')
    }
    update(deltaTime: number) {
        
    }
    protected onDestroy(): void {
        input.off(Input.EventType.TOUCH_START,this.startGame,this)
    }
}


